package com.slz3.business.module.wmsManagement.wmsStockDetailItems.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.wmsManagement.wmsStockDetailItems.domain.WmsStockDetailItems;
import com.slz3.business.module.wmsManagement.wmsStockDetailItems.domain.WmsStockDetailItemsCondition;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class WmsStockDetailItemsResAtomic extends WmsStockDetailItemsResExecutor {

    public Mono<ServerResponse> add_$WmsStockDetailItemsUpdateLock(ServerRequest req, WmsStockDetailItems wmsStockDetailItems) {
        return WmsStockDetailItemsResSafeValid.add(req, wmsStockDetailItems) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.add(req, wmsStockDetailItems);
    }

    public Mono<ServerResponse> delete_$WmsStockDetailItemsUpdateLock(ServerRequest req, WmsStockDetailItemsCondition wmsStockDetailItemsCondition) {
        return WmsStockDetailItemsResSafeValid.delete(req, wmsStockDetailItemsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.delete(req);
    }

    public Mono<ServerResponse> modify_$WmsStockDetailItemsUpdateLock(ServerRequest req, WmsStockDetailItems wmsStockDetailItems) {
        return WmsStockDetailItemsResSafeValid.modify(req, wmsStockDetailItems) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.modify(req, wmsStockDetailItems);
    }

    public Mono<ServerResponse> info_$WmsStockDetailItemsUpdateLock(ServerRequest req) {
        return WmsStockDetailItemsResSafeValid.info(req) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.info(req);
    }

    public Mono<ServerResponse> auditSubmit_$WmsStockDetailItemsUpdateLock(ServerRequest req, WmsStockDetailItemsCondition wmsStockDetailItemsCondition) {
        return WmsStockDetailItemsResSafeValid.auditSubmit(req, wmsStockDetailItemsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditSubmit(req);
    }

    public Mono<ServerResponse> audit_$WmsStockDetailItemsUpdateLock(ServerRequest req, WmsStockDetailItemsCondition wmsStockDetailItemsCondition) {
        return WmsStockDetailItemsResSafeValid.audit(req, wmsStockDetailItemsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.audit(req);
    }

    public Mono<ServerResponse> auditReject_$WmsStockDetailItemsUpdateLock(ServerRequest req, WmsStockDetailItemsCondition wmsStockDetailItemsCondition) {
        return WmsStockDetailItemsResSafeValid.auditReject(req, wmsStockDetailItemsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditReject(req);
    }


    public Mono<ServerResponse> usingEnable_$WmsStockDetailItemsUpdateLock(ServerRequest req, WmsStockDetailItemsCondition wmsStockDetailItemsCondition) {
        return WmsStockDetailItemsResSafeValid.usingEnable(req, wmsStockDetailItemsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingEnable(req);
    }

    public Mono<ServerResponse> usingDisable_$WmsStockDetailItemsUpdateLock(ServerRequest req, WmsStockDetailItemsCondition wmsStockDetailItemsCondition) {
        return WmsStockDetailItemsResSafeValid.usingDisable(req, wmsStockDetailItemsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingDisable(req);
    }
}
